#!/bin/bash

# Install Python development tools
sudo apt-get install -y python2.6-dev

# Install Cython
sudo apt-get install -y cython

# Install kernprof
wget http://pypi.python.org/packages/source/l/line_profiler/line_profiler-1.0b2.tar.gz#md5=90c9e67062f0e01f3e0e6f952a9fdc1d
tar xvzf line_profiler-1.0b2.tar.gz
cd line_profiler-1.0b2
python setup.py install
cd ..
rm -rf line_profiler-1.0b2*

# Install pyflakes
sudo apt-get install -y pyflakes

# Install faulthandler
wget http://pypi.python.org/packages/source/f/faulthandler/faulthandler-1.1.tar.gz#md5=b7b6d78827031c8eaecaa3af26c1a545
tar xvzf faulthandler-1.1.tar.gz
cd faulthandler-1.1
python setup.py install
cd ..
rm -rf faulthandler-1.1*
